home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-08-16 | 3.1 KB | 106 lines | [TEXT/MPS ] |
- //========================================================================================
- //
- // File: Content.h
- // Release Version: $ ODF 1 $
- //
- // Author: M.Boetcher
- //
- // Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- //
- //========================================================================================
-
- #ifndef CONTENT_H
- #define CONTENT_H
-
- // ----- FrameWork Includes -----
-
- #ifndef FWCONTNG_H
- #include "FWContng.h"
- #endif
-
- //========================================================================================
- // Forward Declarations
- //========================================================================================
-
- class CEmbedPart;
- class CEmbedProxy;
-
- //========================================================================================
- // class CEmbedContent
- //========================================================================================
-
- class CEmbedContent : public FW_CEmbeddingContent
- {
- //----------------------------------------------------------------------------------------
- // Initialization/Destruction
- //
- public:
- FW_DECLARE_AUTO(CEmbedContent)
-
- CEmbedContent(Environment* ev, CEmbedPart* part);
-
- virtual ~CEmbedContent();
-
- //----------------------------------------------------------------------------------------
- // Inherited API
- //
- public:
- virtual void Externalize(Environment* ev,
- ODStorageUnit* storageUnit,
- FW_EStorageKinds storageKind,
- FW_CCloneInfo* cloneInfo);
- virtual FW_Boolean Internalize(Environment* ev,
- ODStorageUnit* storageUnit,
- FW_EStorageKinds storageKind,
- FW_CCloneInfo* cloneInfo);
-
- virtual void SingleEmbeddedFrameInternalized(Environment* ev,
- FW_CEmbeddingFrame* scopeFrame,
- ODPart* odEmbeddedPart,
- ODFrame* odEmbeddedFrame,
- ODShape* suggestedShape,
- ODTypeToken viewType);
-
- virtual FW_MProxy* IsDataOnlyOneProxy(Environment* ev) const;
-
- //----------------------------------------------------------------------------------------
- // New API
- //
- public:
- CEmbedProxy* GetProxy() const;
- void SetProxy(CEmbedProxy* proxy);
-
- //----------------------------------------------------------------------------------------
- // Data Members
- //
- private:
- CEmbedPart* fEmbedPart;
-
- //--- part content data
- CEmbedProxy* fProxy;
- };
-
- //========================================================================================
- // CEmbedContent Inlines
- //========================================================================================
-
- //----------------------------------------------------------------------------------------
- // CEmbedContent::GetProxy
- //----------------------------------------------------------------------------------------
-
- inline CEmbedProxy* CEmbedContent::GetProxy() const
- {
- return fProxy;
- }
-
- //----------------------------------------------------------------------------------------
- // CEmbedContent::SetProxy
- //----------------------------------------------------------------------------------------
-
- inline void CEmbedContent::SetProxy(CEmbedProxy* proxy)
- {
- fProxy = proxy;
- }
-
- #endif
-